QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

QD3D Book | Chapter Contents | Next |

Light Objects

Overview

This chapter describes light objects (or lights) and the functions you can use to manipulate them. You use lights to provide illumination on the objects in a model. A group of lights is associated with every view, along with camera information and other settings that affect the rendering of a model.

To use this chapter, you should already be familiar with the QuickDraw 3D class hierarchy, described in the chapter "QuickDraw 3D Objects" earlier in this book. For information about grouping lights into a light group, see the chapter "Group Objects." For information about associating a light group with a view, see the chapter "View Objects." You do not, however, need to know how to create light groups or attach them to views to read this chapter.

For the lights associated with a view to have any effect, there must also be an illumination shader associated with the view. See the chapter "Shader Objects" for information on creating illumination shaders and attaching them to views.

This chapter begins by describing light objects and their features. Then it shows how to create and manipulate lights. The section "Light Objects Reference" provides a complete description of light objects and the routines you can use to create and manipulate them.

Contents

About Light Objects

Using Light Objects

Light Objects Reference

Light Notices


© 1997 Apple Computer, Inc.

QD3D Book | Chapter Contents | Next |